#include "socketmanager.h"

SocketManager::SocketManager()
{

}

SocketManager::~SocketManager()
{
    sockets.clear();
}

/*
 * @brief:
 * @detail:
 */
void SocketManager::append(QTcpSocket* socket)
{
    sockets.append(socket);
}

/*
 * @brief:
 * @detail:
 */
void SocketManager::remove(QTcpSocket* socket)
{
    sockets.removeOne(socket);
}

/*
 * @brief:
 * @detail:
 */
QList<QTcpSocket*> SocketManager::getSockets()
{
    return sockets;
}

